<?
class Principio_Form_Users extends Zend_Form
{
    public function init()
    {
        $login = new Zend_Form_Element_Text("login");
        $login
            ->setRequired(true)
            ->setLabel("Login")
            ->setAttrib("id", "login");

        $name = new Zend_Form_Element_Text("name");
        $name
            ->setRequired(true)
            ->setLabel("Name")
            ->setAllowEmpty(true)
            ->setAttrib("id", "name");

        $last_name = new Zend_Form_Element_Text("last_name");
        $last_name
            ->setRequired(true)
            ->setLabel("Last Name")
            ->setAllowEmpty(true)
            ->setAttrib("id", "last_name");

        $password = new Zend_Form_Element_Password("password");
        $last_name
            ->setRequired(true)
            ->setLabel("Password")
            ->setAllowEmpty(true)
            ->setAttrib("id", "password");


        $this->addElement($login);
        $this->addElement($name);
        $this->addElement($last_name);
        $this->addElement($password);
    }
}
?>